import Https from '@/utils/https'

// 获取离线同步任务统计信息
const offlineDatabases = (params) => Https.get('/api/v1/integration/offline/databases', params, { needCode: true })
const offlineTables = (params) => Https.get('/api/v1/integration/offline/tables', params, { needCode: true })
const offlinePreviewData = (params) => Https.get('/api/v1/integration/offline/previewData', params, { needCode: true })
const getCreateTableSql = (params) => Https.get('/api/v1/integration/offline/getCreateTableSql', params, { needCode: true })
const executeCreateTableSql = (params) => Https.post('/api/v1/integration/offline/executeCreateTableSql', params, { needCode: true, json: false })
const getDirList = (params) => Https.get('/api/v1/integration/offline/getDirList', params, { needCode: true })

const offlineSchema = (params) => Https.get('/api/v1/integration/offline/schema', params, { needCode: true })
export {
  offlineDatabases, offlineTables, offlinePreviewData, getCreateTableSql, executeCreateTableSql, getDirList, offlineSchema,
}
